{extend name="public/common-base" /}

{block name="style"}


<link rel="stylesheet" href="__STATIC__/index/css/css.css" />
<link rel="stylesheet" href="__STATIC__/index/css/common.min.css" />
<link rel="stylesheet" href="__STATIC__/index/css/ms-style.min.css" />
<link rel="stylesheet" href="__STATIC__/index/css/personal_member.min.css" />
<link rel="stylesheet" href="__STATIC__/index/css/Snaddress.min.css" />
<link rel="stylesheet" href="__STATIC__/index/css/sui.css" />

{/block}

{block name="main"}

<div id="ms-center" class="personal-member" style="width: 1200px;">
	<div class="cont clearfix">

		<div class="cont-main" style="float: right;">
			<div class="mt15">

				<!--代码开始-->

				<div class="a_sj_fb_2">
					<div>
						<div class="bt_9">
							<h2>产品支付：</h2>
							<div><span><img src="__STATIC__/index/img/x2.png" alt=""></span></div>
						</div>
						<form method="post" action="<?=url('index/Payment/getCode')?>">
						<div class="zz-1">

							<div class="cz-2 clearfix">
								<div class="cz-2-1">
									<img src="__STATIC__/index/img/x-z01.png" alt="">
								</div>
								<div class="cz-2-2">
									<h2>您的订单已生成，请尽快支付！</h2>
									<h3>
										<span>订单号：<?=$order['order_sn']?></span>
										<span>创建时间：<?=date('Y-m-d H:i:s',$order['add_time'])?> </span>
									</h3>
									<h4>
										<span>应付金额：</span><strong>￥</strong><p><?=$order['order_amount']?></p>
									</h4>
								</div>
							</div>

							<h2>支付方式</h2>
							<div class="zz-2">
								<script type="text/javascript">
									$(function(){
										$(".input-1").css("opacity","0"); //设置透明度
									});
								</script>
								<script type="text/javascript">
									$(document).ready(function(e) {
										$(".fwmc_xxk li").click(function(){
											//var fw_price = $(this).children("i").text();
											//var fw_numb = $(".srkk").val();
											//var fw_tal = fw_price*fw_numb;
											//$(".zwfb_zje span").text(fw_tal);
											$(this).addClass("on").siblings().removeClass("on");
											tola();
										});
										//加
										$(".jia").click(function(){
											var fw_numb = $(".srkk").val();
											fw_numb++;
											$(".srkk").val(fw_numb);
											/*$(".fwmc_xxk li").each(function() {
                                                if($(this).hasClass("on")){
                                                    var dqzt_price = $(this).children("i").text();
                                                    //alert(dqzt_price);
                                                    var zgsj_jia = dqzt_price*fw_numb;
                                                    $(".zwfb_zje span").text(zgsj_jia);
                                                    }
                                            }); */
											tola();
										})

										//减
										$(".jian").click(function(){
											var fw_numb = $(".srkk").val();
											if(fw_numb <= 1){
												alert("数量不足了，请住手！")
											}else{
												fw_numb--;
												$(".srkk").val(fw_numb);
											}
											/*$(".fwmc_xxk li").each(function() {
                                                if($(this).hasClass("on")){
                                                    var dqzt_price = $(this).children("i").text();
                                                    //alert(dqzt_price);
                                                    var zgsj_jia = dqzt_price*fw_numb;
                                                    $(".zwfb_zje span").text(zgsj_jia);
                                                    }
                                            }); */
											tola();
										})


									});



									function tola(){
										var $li = $(".fwmc_xxk").children("li.on");
										var money = $li.children("i").text();
										var count = $(".srkk").val();
										$(".zwfb_zje span").text(money*count);
									}

								</script>
								<ul class="fwmc_xxk">
									<li class="">
										<input class="input-1" type="radio" name="pay_radio" value="pay_code=alipay" style="opacity: 0;">
										<img src="__STATIC__/index/img/zf-1.jpg" alt="">
										<span></span>
									</li>
									<li class="on checked">
										<input class="input-1" type="radio" name="pay_radio" value="pay_code=weixin" style="opacity: 0;" checked="checked">
										<img src="__STATIC__/index/img/zf-2.jpg" alt="">
										<span></span>
									</li>

								</ul>

							</div>

						</div>

							<input type="hidden" name="order_id" value="<?=$order['order_id']?>"/>

						<div class="jbzl_1_6 zz-3">

							<button type="submit">立即支付</button>

						</div>
						</form>
					</div>
				</div>


				<!--代码结束-->

			</div>
		</div>
	</div>


</div>
{/block}



